/* atol example */
#include <stdio.h>
#include <stdlib.h>

int main()
{
  long int li;
  char szInput[256];
  printf("Enter a long number: ");
  gets(szInput);
  li = atol(szInput);
  printf("The value entered is %d. The double is %d.\n", li, li*2);
  return 0;
}
